20. Quiz: JSON by Hand

Create JSON

INSTRUCTOR NOTE:

Note: the comma after "Doe" should appear after the closing braces.

Create JSON

Given that the JSON result for the Name & Title data in the video above is:

{
   "name": {
      "firstName": "John",
      "lastName": "Doe"
   },
   "title": "Missing Person"
}

What would the following look like as JSON?

temp
  min = 11.34
  max = 19.01
weather
  id = 801
  condition = Clouds
  description = few clouds
pressure = 1023.51
humidity = 87

Reflect

QUESTION:

Write your best guess about what the data would look like as JSON

ANSWER:

The correct answer is:

{
   "temp": {
      "min":11.34,
      "max":19.01
   },
   "weather": {
      "id":801,
      "condition":"Clouds",
      "description":"few clouds"
   },
   "pressure":1023.51,
   "humidity":87
}